package Properties;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class inputDemo1 {
    public static void main(String[] args) throws IOException {
        FileInputStream inputStream = new FileInputStream("/Users/tkf/Desktop/7.java基础/javaBase/homeExtendDay14/src/main/java/Properties/config.properties");
        Properties prop = new Properties();
        prop.load(inputStream); // 这一步就已经加载数据了
        inputStream.close();
        System.out.println(prop); //{zhangsan=beijing}
        System.out.println(prop.stringPropertyNames()); //[zhangsan]
    }
}
